(function (modules) {
  // 实现require API
  function require(id) {
    const [fn, mapping] = modules[id];

    const localRequire = (relativePath) => {
      return require(mapping[relativePath]);
    };

    const module = {
      exports: {},
    };

    fn(localRequire, module, module.exports);

    return module.exports;
  }

  // 打包后的文件，只需要执行入口文件就行
  require(0);
})({
  0: [
    function (require, module, exports) {
      "use strict";

      var _info = _interopRequireDefault(require("./info.js"));

      function _interopRequireDefault(obj) {
        return obj && obj.__esModule ? obj : { default: obj };
      }

      console.log(_info["default"]);
    },
    { "./info.js": 1 },
  ],

  1: [
    function (require, module, exports) {
      "use strict";

      Object.defineProperty(exports, "__esModule", {
        value: true,
      });
      exports["default"] = void 0;

      var _consts = require("./consts.js");

      var _default = "my name is ".concat(_consts.name);

      exports["default"] = _default;
    },
    { "./consts.js": 2 },
  ],

  2: [
    function (require, module, exports) {
      "use strict";

      Object.defineProperty(exports, "__esModule", {
        value: true,
      });
      exports.name = void 0;
      var name = "yanwuhc";
      exports.name = name;
    },
    {},
  ],
});
